$(function(){
	var odiv=$('<div class="zan"><i><img src="img/zan1.png" alt="" class="zanbutton"/></i><span class="house">收藏</span></div>');
	$('img').after(odiv);
	$('.clearimg').next().remove();
	$('.zanbutton').click(function(){
		if($(this).attr('src')=="img/zan1.png"){
			$(this).attr('src',"img/zan2.png").animate({
			width:"100%"
			},200).animate({
				width:"85%"
			},100)
		}else{
			$(this).attr('src',"img/zan1.png").animate({
			width:"100%"
			},200).animate({
				width:"85%"
			},100)
		};
		});

					
		/*$(this).attr('src',"img/zan2.png").css({
			'width':"100%",
			'-webkit-transition':'width 400 linear'}.css({
				'width':"85%",
				'-webkit-transition':'width 400 linear'
			}))*/
	
	/*$(this).attr('src',"img/zan2.png").addClass('bigclass')*/
	
})